﻿//using System;
//using System.Collections.Generic;
//using System.Linq;
//using System.Threading.Tasks;
//using System.Web;
//using System.Web.Mvc;
//using System.ComponentModel;
//using Super.Entity;
//using Super.Framework.Common;
//using Super.Framework.EF;
//using Super.Framework.Common.Web;
//using Super.Framework.MVC;
//using Super.Mvc;
//using Super.Service;
//using Super.Web.Areas.Admin.Controllers;
//namespace Developer.Web.Areas.Admin.Controllers
//{
//    [AuthDescription(Name = "权限项管理", No = 1)]
//    public class ActionPermissionController : BaseController
//    {

//        [AuthDescription(Name = "权限项列表", No = 1)]
//        public ActionResult Index()
//        {
//            PageSize = 20;
//            var pageIndex = Query.Value("page").ToInt(1);
//            var keyword = Query.Value("KeyWord");
//            var pageCount = 0;
//            var itemCount = 0;

//            var items = AuthService.GetActionPermissionList(out itemCount, out pageCount, pageIndex: pageIndex, pageSize: PageSize, keyword: keyword);
//            ViewBag.pageCount = pageCount;
//            ViewBag.itemCount = itemCount;
//            ViewBag.keyWord = keyword;
//            return View(items);
//        }

//        [AuthDescription(Name = "权限项删除", No = 1)]
//        public ActionResult ActionPermissionDelete()
//        {
//            var id = Query.Value("id").ToInt(0);
//            var model = SysInfo.DB.ActionPermission.FirstOrDefault(a=>a.Id==id);
//            model.IsAbort = true;
//            SysInfo.DB.SaveChanges();
//            ShowMsg("操作成功!", MessageItemType.Right);
//            return Redirect("/admin/ActionPermission/index");
//        }

//        public class ActionRole
//        {
//            public string ControllerName { get; set; }

//            public string ActionName { get; set; }

//            public string Description { get; set; }

//            public string RoleName { get; set; }
//        }

//        [AuthDescription(Name = "权限项更新", No = 1)]
//        public ActionResult ActionPermissionUpdate()
//        {
//            AuthService.UpdateActionPermission(typeof(BaseController));
            
//            ShowMsg("操作成功!", MessageItemType.Right);

//            return Redirect("/admin/ActionPermission/index");
//        }


//    }
//}
